﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLCONGNOAPPs.BaseControls
{
    public partial class ucBaseControl : UserControl
    {
        public event EventHandler PressNew = null;
        public event EventHandler PressEdit = null;
        public event EventHandler PressDelete = null;
        public event EventHandler PressRefresh = null;
        public event EventHandler PressClose = null;
        public event EventHandler PressHelp = null;
        public event EventHandler PressReports = null;
        public event EventHandler PressSearch = null;
        

        public ucBaseControl()
        {
            InitializeComponent();
        }

        private void btnThemMoi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressNew != null)
            {
                PressNew(sender, null);
            }
        }

        private void btnCapNhat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressEdit != null)
            {
                PressEdit(sender, null);
            }
        }

        private void btnXoa_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressDelete != null)
            {
                PressDelete(sender, null);
            }
        }

        private void btnNapLai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressRefresh != null)
            {
                PressRefresh(sender, null);
            }
        }

        private void btnTroGiup_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressHelp != null)
            {
                PressHelp(sender, null);
            }
        }

        private void btnBaoCao_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressReports != null)
            {
                PressReports(sender, null);
            }
        }

        private void btnDong_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressClose != null)
            {
                PressClose(sender, null);
            }
        }

        private void bBITimKiem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (PressSearch != null)
            {
                PressSearch(sender, null);
            }
        }
    }
}
